public class Student3 {
    private String name;
    private int age;
    //public static String classRoom = "115期";
    private static String classRoom = "115期";


//    public void setName(String name){
//        this.name = name;
//    }
//    public void setAge(int age){
//        this.age = age;
//    }
//
//    public String getName(){
//        return this.name;
//    }
//


//    public Student3(String name, String classRoom, int age) {
//        this.name = name;
//        this.classRoom = classRoom;
//        this.age = age;
//    }

    public Student3(){

    }
    public Student3(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println("===2===");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void doClass(){
        System.out.println(this.name+"上课"+"\n"+this.age+"岁");
    }

    public static String getClassRoom(){
        //Student3 student3 = new Student3("Wang",25);
        student3.doClass();
        System.out.println(student3.name+" 上课"+student3.age+" 年龄");
        return classRoom;
    }

    public static void main(String[] args) {
        Test3 test = new Test3();
    }
}



